m = int(input())
n = int(input())
a = 1
b = 1
for i in range(3,n+1):
    c = a + b
    if i>=m:
        print(c)
    a = b
    b = c
